<%@ Page Language="C#" MasterPageFile="~/Common/WebSiteMaster.master" AutoEventWireup="true" CodeBehind="D_TipsTricks.aspx.cs" Inherits="ScottCateAjax2008.Lesson01.D_TipsTricks" Title="Connection Tips/Tricks" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

    <h2>Connections</h2>
    <p>
        Browsers by default will only connect back to your site on two threads. This means
        if you have images, style sheets, javascript, and other static data being pulled
        down, you can only have two items being loaded at once. If you have 20 items to
        load, this can give the impression of a slower site.</p>
    <h3>A work around</h3>
    <p>
        The connection limit is based on the site URL. The domain, or IP address. Most of
        us load images out of an /Images directory, and Javascript out of a /Scripts directory.
        You can get the browser to open more threads to your content, if you move your content
        to another domain.</p>
    <h3>Consider</h3>
    <strong>What use to be</strong>
    <ul>
        <li>/Images</li>
        <li>/Scripts</li>
        <li>/Styles</li>
    </ul>
    <strong>Becomes</strong>
    <ul>
        <li>http://Images.example.com</li>
        <li>http://Scripts.example.com</li>
        <li>http://Styles.example.com</li>
    </ul>

</asp:Content>









